package com.gzc.pm.ro;

import java.util.List;

import cn.skyclass.net.OperationResult;

import com.gzc.pm.bean.CpkStandardBean;
import com.gzc.pm.dao.CpkStandardDao;

public class CpkStandardRo {
	
	public boolean insert(List<CpkStandardBean> cpkStandardList){
		CpkStandardDao dao = new CpkStandardDao();
		OperationResult or =  dao.insert(cpkStandardList);
		return or.isSuccessful();
	}
	
	public List<CpkStandardBean> getListByPrId(int prId){
		CpkStandardDao dao = new CpkStandardDao();
		return dao.getListByPrId(prId);
	}
	
	public boolean update(List<CpkStandardBean> cpkStandardList){
		CpkStandardDao dao = new CpkStandardDao();
		OperationResult or =  dao.update(cpkStandardList);
		return or.isSuccessful();
	}

}
